<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>赞美播放页面</title>
    <meta name="viewport" content="width=device-width initial-scale=1 user-scalable=yes"/>
    <script src="https://res.wx.qq.com/open/js/cloudbase/1.1.0/cloud.js"></script>
    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="../js/bootstrap-4.5.3-dist/js/bootstrap.bundle.js"></script>
    <link rel="stylesheet" href="../js/bootstrap-4.5.3-dist/css/bootstrap.css">
    <script src="../js/a3.js"></script>
    <script src="../js/wxCloud.js?type=9"></script>
    <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
</head>
<body x-data="play()" x-init="init()">

</body>
</html>
<script>
    function play(){
        return {
            getParam(key) {
                let reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)","i");
                let r = window.location.search.substr(1).match(reg);
                if (r!=null) return (r[2]); return null;
            },
            async init(){

                let id = this.getParam('d')

                if(id){
                    console.log(id);
                   const db = wxCloud.db()

                }else{
                    alert('请传入正确的参数')
                }
            }
        }
    }

</script>
